package com.lu.pojo.thread;

/**
 * @author luzhenfang
 * @date 2020 05 16
 * @description 实现runnable接口,重写run方法
 */
public class TestRunnable implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 200; i++) {
            System.out.println("我在写bug:"+i);

        }
    }

    public static void main(String[] args) {
        TestRunnable runnable = new TestRunnable();
        Thread thread = new Thread(runnable);
        thread.start();
        for (int i = 0; i < 200; i++) {
            System.out.println("我在修bug:"+i);

        }
    }
}
